<template>
	<view>
		<web-view :src="src" @load="bindload" @error="binderror">
		</web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: ''
			}
		},
		onShareAppMessage() {
			// console.log("in share!")  // 点击分享的时候可以看到这条日志
			wx.showShareMenu({ // 这里显示打开
				withShareTicket: true,
				menu: ['shareAppMessage', 'shareTimeline']
			})
			return {
				title: '',

				imageUrl: ''
			}
		},
		onLoad(options) {
			console.log('获取传递过来的手机号', options)
			// this.src ='https://hzq.yoojet.com/#/PublicAccount/HistoricalRecord?phone=' + options.phone
			this.src = 'https://hzq.yoojet.com/#/SendSMSMobile?id=' + options.id
		},
		methods: {
			bindload(res) {
				console.log(res)
			},
			binderror(res) {
				console.log(res)
			}
		}
	}
</script>

<style>

</style>